#ifndef _IPList_H
#define _IPList_H

#include <vector>
#include <string>
#include <iostream>

class IPList : public std::vector<std::string>
{
	friend std::ostream& operator <<(std::ostream&, const IPList&);
	
	public : 
		IPList();
		void push_back ( const std::string& addr );

		/**
		 * This function indicate if an IP address is correct or not 
		 * 
		 * @param addr_ip the IP address
		 * 
		 * @return bool true if IP address is correct, otherwise false
		*/
		static bool isIP ( const std::string& addr_ip );
		
};

#endif /* _IPList_H */



